package com.example.config;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class SentinelConfig {
    public static String sentinelBlock(@PathVariable(value = "username",required = false) String username,
                                       @PathVariable(value = "age",required = false) Integer age,
                                       BlockException e){
        return "自定义sentinelblock1";
    }
    public static String sentinelBlock2(BlockException blockException){
        return "自定义sentinelblock2";
    }
}
